Skip to content

Conversation

@jacobd91
Copy link
Contributor

@jacobd91 jacobd91 commented Nov 4, 2025

This PR adds a new metabox to the CDN settings page to hold the "upgrade and/or use FSD"

If not pro, it will show the get pro wrapper
If not Total CDN it will show the get TCDN banner

If pro and TCDN, but on TCDN SAD it will show a notice indicating that FSD is available with a link to "switch" to it
If pro and TCDN, but not TCDN SAD or FSD it will show a notice indicating that FSD is available with a link to "enable" it

@jacobd91 jacobd91 requested review from Copilot and cssjoe November 4, 2025 16:09
@jacobd91 jacobd91 self-assigned this Nov 4, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new marketing section for Full-Site Delivery (FSD) to the CDN settings page, promoting upgrades to W3 Total Cache Pro and Total CDN services.

  • Creates a new marketing component for FSD upsells with conditional display logic
  • Extends existing CSS styles to support the new FSD promotional elements
  • Displays different messages based on user's W3TC Pro status and Total CDN authorization state

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
pub/css/options.css Extended existing TotalCDN advertisement styles to include the new FSD marketing section
inc/options/cdn.php Added conditional logic to include FSD marketing content based on user's W3TC Pro and TotalCDN status
inc/options/cdn-fsd-marketing.php New file containing marketing content with multiple promotional scenarios for FSD feature

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2025

Codecov Report

❌ Patch coverage is 0% with 78 lines in your changes missing coverage. Please review.
✅ Project coverage is 2.28%. Comparing base (88fd93b) to head (ff6795c).

Files with missing lines Patch % Lines
inc/options/cdn-fsd-marketing.php 0.00% 65 Missing ⚠️
inc/options/cdn.php 0.00% 13 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##             total-cdn-staging    #1239      +/-   ##
=======================================================
- Coverage                 2.28%    2.28%   -0.01%     
  Complexity               20220    20220              
=======================================================
  Files                      669      670       +1     
  Lines                   102092   102170      +78     
=======================================================
  Hits                      2335     2335              
- Misses                   99757    99835      +78     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants